package org.fing.edu.uy.esbadp.core.entity;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;

import org.fing.edu.uy.esbadp.core.constants.EsbAdpPropertyConstants;


@XmlRootElement(name = EsbAdpPropertyConstants.REQUIREMENTS_ELEMENT)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlSeeAlso({DMAdpServiceRequirementCondition.class})
public class DMAdpServiceRequirement implements Serializable{
	
	private static final long serialVersionUID = 313599838413479404L;
	
	String name;	
	DMAdpServiceRequirementCondition condition;
	
	
	public DMAdpServiceRequirement(){
		
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public DMAdpServiceRequirementCondition getCondition() {
		return condition;
	}

	public void setCondition(DMAdpServiceRequirementCondition condition) {
		this.condition = condition;
	}

	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("    name:");
		sb.append(name);
		sb.append("\n");	
		sb.append("    condition->\n");
		sb.append(condition);
		sb.append("\n");
		return sb.toString();	
	}

}
